package pk2;

public class Test {
    public static void main(String[] args) {
        Animal d=new Dog(2,"黑");
        Animal c=new Cat(3,"灰");
        Person p1=new Person("老王",30);
        p1.KeepPet(d,"骨头");
        Person p2=new Person("老李",25);
        p2.KeepPet(c,"鱼");


    }


}
